package com.cowain.monitor.service;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cowain.monitor.entity.ErpMoEntity;
import com.cowain.monitor.entity.PmsProductionOrderEntity;
import com.cowain.monitor.utils.R;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * PMS ehr-backend
 *
 * @Classname ErpMoService
 * @Description TODO
 * @Date 2020-07-27 19:16
 * @Created 沈科举
 */
public interface ErpMoService {


    /**
     * 根据推送状态查询生产订单信息
     *
     *
     * @param pageIndex
     * @return
     */
    List<ErpMoEntity> findErpMoByIsDel(Integer pageIndex);

    /**
     * 插入pms_production_order(生产订单信息表)表内
     *
     * @param erpMoEntityList
     * @return
     */
    R addPmsProductionOrderEntity(List<ErpMoEntity> erpMoEntityList);

    /**
     * 根据id修改生产订单已读状态
     *
     * @param erpMoEntityList
     * @return
     */
    int updatErpMoById(List<ErpMoEntity> erpMoEntityList);


}
